// 追加style标签
export default (id: string, stylesheet: string) => {
  if (!(document.head.querySelector('style')?.id === id)) {
    const style = document.createElement('style');
    style.id = id;
    style.innerHTML = stylesheet;
    document.head.appendChild(style);
  }
}